package com.hnkywl.sts.entity.sys;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.organ.Zyf;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;

import javax.persistence.*;
import java.util.Date;

/**
 * 菜单
 * Created with IntelliJ IDEA.
 * User: jerry
 * Date: 13-3-3
 * Time: 下午10:22
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "T_SYS_ZDKHZ")
public class Zdkhz extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqZdkhz", allocationSize = 1, sequenceName = "SEQ_SYS_ZDKHZ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqZdkhz")
    private Long id;

    //品名
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "zyfid")
    @NotFound(action = NotFoundAction.IGNORE)
    private Zyf zyf;

    //指导价
    private Double zdkhz;

    //导入日期
    private Date drrq;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Zyf getZyf() {
        return zyf;
    }

    public void setZyf(Zyf zyf) {
        this.zyf = zyf;
    }

    public Double getZdkhz() {
        return zdkhz;
    }

    public void setZdkhz(Double zdkhz) {
        this.zdkhz = zdkhz;
    }

    public Date getDrrq() {
        return drrq;
    }

    public void setDrrq(Date drrq) {
        this.drrq = drrq;
    }


}
